﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using System.Collections;
using System.Data;

namespace Hospital
{
    public class DataProvider
    {
        public static OleDbConnection ConnectionData()
        {
            string cnStr = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = BN.mdb";
            OleDbConnection cn = new OleDbConnection(cnStr);
            cn.Open();
            return cn;
        }
  
    }
}
